import random;
r = random;
h = 30;
q = 100000;
print(str(h) + " " + str(q));
for i in range(q):
	t = r.randint(0, 1);
	if t == 0:
		print("add " + str(r.randint(1, (1 << 31) - 1)) + " " + str(r.randint(0, 10000)));
	else: print("decay");
